package com.bjwl.dao;

import com.bjwl.pojo.Customer;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: czc
 * @Date:Create：in 2020/4/9 15:23
 * @Description:客户mapper
 * @Modified By：
 * @Version: 1.0
 */
@Repository
public interface CustomerMapper {

    //查询所有用户
    public List<Customer> findAllCustomer();
    //添加客户
    public int addCustomer(Customer customer);
    //删除客户
    public void deleteCustomer(Integer id);
    //通过id修改客户
    public Integer byIdUpdateCustomer(Customer customer);

    //跟据用户名称查询用户
    public Customer byCnameFindCustomer(Customer customer);


}
